n = int(input())
num = 1
for i in range(n,0,-1):
    for j in range(i):
        if num<10:
            print("0%d"%num,end='')
        else:print(num,end='')
        num += 1
    print()